#ifndef QRSCCLIENT_H
#define QRSCCLIENT_H

#include <QTcpSocket>
#include <QPixmap>

class QRSCClient : public QTcpSocket
{
    Q_OBJECT
public:
    explicit QRSCClient(QObject *parent = nullptr);

    bool start(const QString& serverIp, quint16 port);
    void stop();
    void writeCmd(const QString& cmd);
signals:
    void onReceiveImage(const QPixmap& image);

private:
    QByteArray _imageData;
    int _dataSize;
};

#endif // QRSCCLIENT_H
